/* import { defineComponent, h } from 'vue'

export default defineComponent({
  name: 'MyButton',
  render() {
    return h(
      'button',
      {
        ...this.$attrs,
        onClick: () => this.$emit('custom-click')
      },
      this.$slots
    )
  }
})
 */

import { defineComponent, h } from 'vue'
export default defineComponent({
  name: 'MyButton',
  props: {
    disabled: Boolean
  },

  render() {
    const customClick = () => {
      this.$emit('custom-click')
    }
    return h(
      'button',
      {
        disabled: this.$props.disabled,
        onClick: customClick
      },
      this.$slots.default()
    )
  }
})
